package com.micro.monitoring;

import android.annotation.SuppressLint;
import android.app.ActivityManager;
import android.app.Application;
import android.content.Context;

import com.micro.monitoring.basic.BasicDensity;


public class App extends Application {
    @SuppressLint("StaticFieldLeak")
    private static Context context;

    @Override
    public void onCreate() {
        super.onCreate();
        context = getApplicationContext();
        BasicDensity.setDensity(this, 420);
    }
    public static Context getAppContext(){
        return context;
    }

    public static String getPackage(){
        return context.getPackageName();
    }

    public static ActivityManager getActivityManager() {
        return (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
    }
}